package com.hanson.basicknowledge.AOPdemo.service.impl;

import com.hanson.basicknowledge.AOPdemo.User;
import com.hanson.basicknowledge.AOPdemo.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author Hanson
 * @date 2023/2/24 12:26
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public User getUser(String id) {
        User user = new User();
        user.setAge(id);
        user.setName("Alice");
        return user;
    }

    @Override
    public void saveUser(User user) {
        System.out.println("User saved: " + user);
    }
}
